package com.groupbuying.cheetah.service.impl;

import com.groupbuying.cheetah.dao.CheetahTmpOrderFlowDao;
import com.groupbuying.cheetah.domain.CheetahTmpOrderFlowDO;
import com.groupbuying.cheetah.service.CheetahTmpOrderFlowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;




@Service
public class CheetahTmpOrderFlowServiceImpl implements CheetahTmpOrderFlowService {
	@Autowired
	private CheetahTmpOrderFlowDao cheetahTmpOrderFlowDao;
	
	@Override
	public CheetahTmpOrderFlowDO get(String orderType){
		return cheetahTmpOrderFlowDao.get(orderType);
	}
	
	@Override
	public List<CheetahTmpOrderFlowDO> list(Map<String, Object> map){
		return cheetahTmpOrderFlowDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return cheetahTmpOrderFlowDao.count(map);
	}
	
	@Override
	public int save(CheetahTmpOrderFlowDO tmpOrderFlow){
		return cheetahTmpOrderFlowDao.save(tmpOrderFlow);
	}
	
	@Override
	public int update(CheetahTmpOrderFlowDO tmpOrderFlow){
		return cheetahTmpOrderFlowDao.update(tmpOrderFlow);
	}
	
	@Override
	public int remove(String orderType){
		return cheetahTmpOrderFlowDao.remove(orderType);
	}
	
	@Override
	public int batchRemove(String[] orderTypes){
		return cheetahTmpOrderFlowDao.batchRemove(orderTypes);
	}

	@Override
	public int saveList(List<CheetahTmpOrderFlowDO> cheetahTmpOrderFlowList) {
		return cheetahTmpOrderFlowDao.saveList(cheetahTmpOrderFlowList);
	}

	@Override
	public List<CheetahTmpOrderFlowDO> getCheetahTmpOrderFlowList(String orderId) {
		return cheetahTmpOrderFlowDao.getCheetahTmpOrderFlowList(orderId);
	}

}
